home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / E.T.O. #4 Installer / MacsBug Install < prev    next >
Text File  |  1991-05-23  |  2KB  |  64 lines

  1. #    M A C S B U G   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1990, 1991 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install either MacsBug 6.1 or 6.2.1 from the 
  7. #    E.T.O. #4 distribution compact disk into a folder called "MacsBug Folder"
  8. #    on the destination hard disk. 
  9. #
  10. #    Options: None
  11. #
  12. #    This script makes use of the following Shell variables:
  13. #
  14. #    {CDVolume}        - the name of the CD Distribution volume
  15. #
  16. #    {SystemFolder}    - the path to the folder containing the currently active System
  17. #
  18. #    {DestVolume}    - the name of the volume from which the Installer was launched
  19. #
  20. #    {MacsBugOption}    - a flag used to indicate which version of MacsBug to install
  21.  
  22.  
  23. If    "{MacsBugOption}" == "1"        ### install MacsBug 6.1
  24.     set Source    "{CDVolume}Tools - Objects:MacsBug:MacsBug 6.1:"
  25. Else If    "{MacsBugOption}" == "2"    ### install MacsBug 6.2.1
  26.     set Source    "{CDVolume}Tools - Objects:MacsBug:MacsBug 6.2.1:"
  27. Else
  28.     Exit 1
  29. End
  30.  
  31. ###    First, copy Macsbug into the System Folder
  32.  
  33. if "`Exists -f "{SystemFolder}MacsBug"`"
  34.     if "`Exists -f "{SystemFolder}MacsBug.Old"`"
  35.         Delete -y "{SystemFolder}MacsBug.Old"
  36.     End
  37.  
  38.     Rename "{SystemFolder}MacsBug" "{SystemFolder}MacsBug.Old"
  39. End
  40.  
  41. Duplicate -y "{Source}MacsBug" "{SystemFolder}MacsBug"
  42.  
  43. ###    Now, copy the rest of the stuff
  44.  
  45. If "`Exists -f "{SystemFolder}debugger prefs"`"
  46.     Derez -s mxbi -s mxbc -s dcmd "{Source}debugger prefs" > "{SystemFolder}debugPrefTemp"
  47.     Rez -a "{SystemFolder}debugPrefTemp" -o "{SystemFolder}debugger prefs"
  48.     Derez -only dcmd "{Source}debugger prefs" > "{SystemFolder}debugPrefTemp"
  49.     Rez "{SystemFolder}debugPrefTemp" -t "rsrc" -c "RSED" -o "{SystemFolder}debugger prefs dcmds"
  50.     delete "{SystemFolder}debugPrefTemp"
  51. else
  52.     duplicate -y "{Source}debugger prefs" "{SystemFolder}debugger prefs"
  53. End
  54.  
  55. If "`Exists -d "{DestVolume}MacsBug Folder"`"
  56.     if "`Exists -d "{DestVolume}MacsBug Folder.OLD"`"
  57.         Delete -y "{DestVolume}MacsBug Folder.OLD"
  58.     End
  59.      
  60.     Rename "{DestVolume}MacsBug Folder" "{DestVolume}MacsBug Folder.OLD"
  61. End
  62.  
  63. Duplicate -y "{Source}" "{DestVolume}MacsBug Folder:"
  64.